<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=<?=$this->config->item('charset');?>">
	<title><?=$shicai_info['title']?>的做法大全_怎么做<?=$shicai_info['title']?>_<?=$shicai_info['title']?>相克_<?=$shicai_info['title']?>热量表_<?=$this->config->item('site_name');?></title>
	<meta name="keywords" content="<?=$shicai_info['title']?>的功效与作用,<?=$shicai_info['title']?>食用禁忌,<?=$shicai_info['title']?>相克大全,<?=$shicai_info['title']?>的营养分析" />
	<meta name="description" content="<?=$this->config->item('site_description');?>" />
	<link href="/favicon.ico" rel="shortcut icon" type="image/x-icon" />
	<link href="<?=base_url('static/css/global.css')?>" rel="stylesheet" type="text/css" media="screen">
	<link href="<?=base_url('static/css/recipe.css')?>" rel="stylesheet" type="text/css" media="screen">

	<script src="<?=path_res('static/js/jquery.js')?>"></script>
	<script src="<?=path_res('static/js/jquery-ui.min.js')?>"></script>
	<script src="<?=path_res('static/js/jquery.lazyload.js')?>"></script>
	<script src="<?=path_res('static/js/functions.js')?>"></script>
	<script>
    $(document).ready(function(){
        $("#listtyle1_w img").lazyload({
        placeholder : "http://www.ichufang.cn/static/img/loading.gif",
        effect : "fadeIn"
        });
    });
    </script>
</head>
<body>

<? $this->load->view('header'); ?>

<div  class="main_w clearfix">
	<div  class="main">
		<div class="nav_line">
			<li><a href="<?=base_url()?>">首页</a></li>
			<li>&gt;</li>
			<li><a href="<?=site_url('shicai')?>">食材百科</a></li>
			<li>&gt;</li>
			<li><a href="<?=site_url('shicai/subcate/'.$shicai_info['classid'])?>"><?=$shicai_info['cate_name']['cateName']?></a></li>
			<li>&gt;</li>
			<li><?=$shicai_info['title']?></li>
		</div>
		<div class="sc_header">
			<img class="sc_headerimg" alt="<?=$shicai_info['title']?>" src="<?=$shicai_info['pic']?>">

			<div class="sc_header_con1">
				<h1><?=$shicai_info['title']?></h1>
				<p class="p1"></p>
				<p class="p2">【别名】：<?=$shicai_info['alias']?><br>
						【适宜人群】：<?=$shicai_info['crowd']?></p>
			</div>
			<div class="sc_header_con2"><span onclick="guanzhuquxiao(<?=$shicai_info['id']?>)" class="<?php if ($shicai_info['is_like']){ echo 'qxmilike';}else{ echo 'milike';}?>" id="shicaiguanzhu"><a href="javascript:void(0);"><?php if ($shicai_info['is_like']){ echo '取消喜欢';}else{ echo '喜欢';}?></a></span></div>
		</div>
		<br/>
		<br/>
		<div  class="shicai_maincon">
			<div  class="shicai_cp clearfix">
				<div  class="shicai_cp_w clearfix">
					<div  class="sccon_left"  id="sccon_left">
						<div  class="listtyle1_w clearfix"  id="listtyle1_w">
							<div  class="listtyle1_list clearfix"  id="listtyle1_list">
							<div  class="scc_masker pngFix"  style="display: none;"></div>
							<?php $cpi = -1;?>
			<?php foreach($shicai_like_caipu as $caipu):?>
			<?php $cpi++;?>
			<div class="listtyle1 <?php if($cpi==0 || $cpi%3==0){echo 'ml0';}?>">
			<div class="big">
				<a target="_blank"  href="<?=site_url('recipe/'.$caipu['id'])?>"  title="<?=$caipu['title']?>"><img  class="img"  alt="<?=$caipu['title']?>"  src="<?=$caipu['coverImage']?>"></a>
				<div  class="i_w">
					<div  class="i">
						<div  class="c1">
							<strong><?=$caipu['title']?></strong>
							<span>制作需要 <?=$caipu['costtime']?>分左右</span>
							<em><?=$caipu['author']?></em>
						</div>
					</div>
				</div>
			</div>
			</div>
            <?php endforeach;?>

								
				
						</div>
				<div  class="listtyle1_page">
					<div class="pager">
						<?= $this->pagination->create_links();?>
					</div>
				</div>
							</div>
		</div>
		<div  class="sccon_right"  id="sccon_right"  style="width: 232px; overflow: hidden;">
		<div  class="sccon_right_w">
		<div  class="scc_masker pngFix"  style="display: block;"></div>
			<div  class="sccon_right_con">
				<strong  class="title1"><?=$shicai_info['title']?>的百科知识</strong>
				<?php if($shicai_info['intro']):?>
				<strong  class="title2"><?=$shicai_info['title']?>介绍</strong>
				<p><?=$shicai_info['intro']?></p>
				<?php endif;?>
				<?php if ($shicai_info['xiangsheng_array'] || $shicai_info['xiangke_array']):?>
				<strong  class="title2"><?=$shicai_info['title']?>的搭配宜忌</strong>
				<ul class="clearfix">
					<?php foreach( $shicai_info['xiangsheng_array'] as $xiangsheng) :?>
					<?php $xiangshengs = explode('：',$xiangsheng);?>
						<li class="yi"><div class="t">宜</div><p><a  target="_blank"  title="点击查看【<?=$shicai_info['title']?>+<?=@$xiangshengs[0]?>】的菜谱"  href="<?=site_url('search/caipu/'.$shicai_info['title'].'+'.@$xiangshengs[0].'')?>"><?=$shicai_info['title']?> + <?=@$xiangshengs[0]?>，<?=@$xiangshengs[1]?></a></p></li>
				    <?php endforeach;?>

					<?php foreach( $shicai_info['xiangke_array'] as $xiangke) :?>
					<?php $xiangkes = explode('：',$xiangke);?>
						<li class="ji"><div class="t">忌</div><p><?=$shicai_info['title']?> + <?=@$xiangkes[0]?>，<?=@$xiangkes[1]?></p></li>
				    <?php endforeach;?>
				</ul>
				<?php endif;?>
				<strong  class="title2"><?=$shicai_info['title']?>的营养信息<span>(营养素含量/每100克)</span></strong>
      			<p>
      				<table border="0" cellspacing="0" cellpadding="0" class="inrtab">
						<tr>
							<td width="200">营养素</td>
							<td width="125">含量(每100克)</td>
							<td width="200"></td>
							<td width="125"></td>
						</tr>
						<tr>
							<?php $index=1;$i=1?>
							<?php $nutrientlists = explode(',',$shicai_info['tropho']);?>
							<?php foreach($nutrientlists as $rsnutrients) : ?>
							<?php $index++;?>
								<?php $nutrientlist = explode('-',trim($rsnutrients));?>
								<?php foreach($nutrientlist as $rsnutrient) :?>
								<?php if ($i ==0) :?>
									<td width="200"><?=$rsnutrient?></td>
								<?php else : ?>
									<td width="125" class="<?=$index?> <?php if ($index%1==0) : ?>lirdo<?php endif ?>">
										<?=$rsnutrient?>
									</td>
								<?php endif ?>
								<?php endforeach?>
							<?php if ($index%2==0) : ?></tr><tr><?php endif?>
							<?php endforeach?>
						</tr>
					</table>
      			</p>
      			<?php if($shicai_info['effect']):?>
				<strong  class="title2"><?=$shicai_info['title']?>的功效</strong>
      			<p><?=$shicai_info['effect']?></p>
      			<?php endif;?>
      			<?php if($shicai_info['worth']):?>
      			<strong  class="title2"><?=$shicai_info['title']?>的营养价值</strong>
      			<p><?=$shicai_info['worth']?></p>
      			<?php endif;?>
      			<?php if($shicai_info['crowd']):?>
      			<strong  class="title2"><?=$shicai_info['title']?>的适用人群</strong>
      			<p><?=$shicai_info['crowd']?></p>
      			<?php endif;?>
      			<?php if($shicai_info['pick']):?>
				<strong  class="title2"><?=$shicai_info['title']?>的选购</strong>
      			<p><?=$shicai_info['pick']?></p>
      			<?php endif;?>
      			<?php if($shicai_info['store']):?>
      			<strong  class="title2"><?=$shicai_info['title']?>的储存方法</strong>
      			<p><?=$shicai_info['store']?></p>
      			<?php endif;?>
      		</div>
		</div>



		</div>
		</div>
		</div>
	</div>
</div>
</div>
<script src="<?=path_res('static/js/recipe.js')?>"></script>
<? $this->load->view('footer'); ?>